<!-- 控件的icon -->
<template>
  <icon-font :type="type" :size="size" />
</template>

<script lang="ts" setup>
  import { Icon } from '@arco-design/web-vue';

  const props = withDefaults(
    //参数说明
    defineProps<{
      size: number; //icon的size
      type: string; // icon的类型
    }>(),
    {
      size: 14, // 默认14px
    }
  );

  const IconFont = Icon.addFromIconFontCn({
    src: 'https://at.alicdn.com/t/c/font_3782788_1r3t8igs73d.js',
  });
</script>

<style scoped lang="less"></style>
